import store from "@/store";
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};
// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};
export const formBase = [
  {
    label: "目的地",
    type: "select",
    field: "destinationId",
    optionsKey: "destinationName",
    optionsValue: "destinationId",
    options: store.state.custom_dict.destination,
  },
];

export const tableBase = [
  {
    label: "ID",
    prop: "id",
    width: 50,
  },
  {
    label: "目的地代码",
    prop: "destinationCode",
    operate: {
      type: "input",
      field: "destinationCode",
    },
  },
  {
    label: "目的地名称",
    prop: "destinationName",
    width: 200,
    operate: {
      type: "input",
      field: "destinationName",
    },
  },
  {
    label: "兑换比率",
    prop: "exchangeRatio",
    width: 200,
    operate: {
      type: "inputNumber",
      field: "exchangeRatio",
    },
  },
  {
    label: "兑换比例",
    prop: "exchangePlusRatio",
    operate: {
      type: "inputNumber",
      field: "exchangePlusRatio",
    },
  },
  {
    label: "币别单位",
    prop: "currencyUnit",
    operate: {
      type: "inputNumber",
      field: "currencyUnit",
    },
  },
  {
    label: "消费税率",
    prop: "consumptionTaxRate",
    operate: {
      type: "inputNumber",
      field: "consumptionTaxRate",
    },
  },
];
